using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;

namespace UserRegisterService
{
    class Program
    {
        static void Main(string[] args)
        {
            //Contract.User user = new UserRegisterService.Contract.User();
            //user.FirstName="anna";
            //user.LastName="chen";
            //DataAccess.UserRegister.Register(user);

            ServiceHost host = new ServiceHost(typeof(Service.UserRegister));
            ServiceHost msmqhost = new ServiceHost(typeof(Service.UserRegisterOneway));
            msmqhost.Open();
            host.Open();

            Console.WriteLine("any key to exite!....");
            Console.ReadLine();

            host.Close();
            msmqhost.Close();
               
        }
    }
}
